package com.smart.model.dtomapper;

import com.smart.model.domain.OperateUserRoleDO;
import com.smart.model.request.OperateUserRoleRequest;
import com.smart.model.vo.OperateUserRoleVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface OperateUserRoleDtoMapper {

    OperateUserRoleDtoMapper INSTANCE = Mappers.getMapper(OperateUserRoleDtoMapper.class);

    /**
    * DO to VO
    * @param operateUserRoleDO
    * @return
    */
    OperateUserRoleVO do2VO(OperateUserRoleDO operateUserRoleDO);

    /**
     * reuest to DO
     * @param operateUserRoleDO
     * @return
     */
    OperateUserRoleDO request2DO(OperateUserRoleRequest operateUserRoleDO);
}
